<template>
	<view class="personal">
		<TopBar :indexflag="true" :combakflag="true" :lang="false" :bottom="true" :title="$t('DeliveryPerson')"
			barstyle="background-color:rgba(0,0,0,0)"></TopBar>
		<HeaderTitle :title="$t('DeliveryPerson')" :bottom="true" :lang="false" :mobile="false" :combakflag="true">
		</HeaderTitle>
		<view class="top-content">
			<image src="../../static/images/Frame2.png" mode="widthFix"></image>
			<view class="title">DikiDiki</view>
			<view class="sub-title">{{$t('GreenHealthyLife')}}</view>
		</view>
		<Contact style="margin-top: 100rpx;" :shopdata="mydata"></Contact>
		<view class="save-button" @click="changeAdd">{{$t('Addwe')}}</view>
	</view>
</template>

<script>
	import TopBar from "@/components/TopBar.vue"
	import Contact from "@/components/Contact.vue"
	export default {
		components: {
			TopBar,
			Contact
		},
		data() {
			return {
				mydata: {
					mobile: '17690927591',
					wechat: '17690927591'
				}

			};
		},
		onLoad() {
			uni.setNavigationBarTitle({
				title: this.$t('DeliveryPerson')
			})
		},
		computed: {
			i18nLocale() {
				return this.$i18n.locale;
			},
		},
		methods: {
			changeAdd() {
				// 在某个页面的方法中触发跳转外链
				window.location.href="http://192.168.1.5:81/"
				// window.location.href="https://js.kompas.world/rider"
			}
		}
	}
</script>

<style lang="scss">
	.personal {
		padding: $uni-spacing-padding-sm;
		box-sizing: border-box;

		.top-content {
			display: flex;
			flex-direction: column;
			align-items: center;
			padding-top: 150rpx;
			box-sizing: border-box;

			.title {
				margin-top: 30rpx;
				font-size: 50rpx;
				color: $uni-color-topic;
			}

			.sub-title {
				margin-top: 10rpx;
				font-weight: 500;
				font-size: $uni-font-size-base;
			}

			image {
				width: 250rpx;
			}
		}

		.save-button {
			width: 90%;
			margin: 20rpx auto;
			background-color: $uni-color-topic;
			color: #fff;
			font-size: $uni-font-size-lg;
			padding: $uni-spacing-padding-sm 0rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			border-radius: $uni-border-radius-lg;
			position: fixed;
			bottom: 5%;
			left: 5%;
		}
	}

	.ug-from {
		direction: rtl;

		/deep/ .uni-input-input {
			direction: rtl !important;
			text-align: right;
		}

		/deep/ .uni-input-placeholder {
			text-align: right;
		}
	}
</style>